import { createRouter, createWebHistory } from 'vue-router'
import routes from './routes'

export function defineMeta() { 0 }


const filerouter = (options = {}) => {
    const { routesHook = v => v, ...resetOpts } = options
    return createRouter({
        history: createWebHistory(),
        routes: routesHook(routes) || routes,
        ...resetOpts
    })

}
export default filerouter

